#ifndef WINDOW_H
#define WINDOW_H

#include <QWidget>
#include <QLabel>
#include <QSlider>
#include <QLayout>
#include <QPushButton>
#include <QPixmap>
#include <QString>
#include <QLineEdit>
#include <QTimer>
#include "ai.h"

#define	SPEEDRECEIVE	500

class Window : public QWidget
{
Q_OBJECT
public:
	explicit Window(QWidget *parent = 0);

private:
    QHBoxLayout *lglobal;
    QVBoxLayout *linyan;
    QHBoxLayout *lreceive;
    QHBoxLayout *lsolve;
    QHBoxLayout *lrecall;
    QVBoxLayout *lvglob;
    QVBoxLayout *lvglob2;
    QHBoxLayout *ledit;
    QHBoxLayout *lhcountnode;
    QHBoxLayout *lhcombin;

    QPixmap *imgon;
    QPixmap *imgoff;

    QLabel *lbltxtinyan;
    QLabel *lbltxtreceive;
    QLabel *lbltxtsolve;
    QLabel *lbltxtrecall;
    QLabel *lbltxtedit;
    QLabel *lblimgreceive;
    QLabel *lblimgsolve;
    QLabel *lblimgrecall;
    QLabel *lbltxtbuffer;
    QLabel *lbltxtresponse;
    QLabel *lbltxtinfocountnode;
    QLabel *lbltxtinfocombination;
    QLabel *lbltxtinfocount;
    QLabel *lbltxtinfocombin;

    QSlider *inyan;

    QPushButton *power;

    QLineEdit *input;

    int counter;
    AI ai;
signals:

public slots:
    void sendtobuffer();
};

#endif // WINDOW_H
